package ch4.ex9;

import static ch4.print.Print.*;

class Doc {
	Doc(int i){
		this("Test");
		int yearsTraining = i;
		println("New doc with " + i + " years of training.");
	}
	Doc(String s){
		String degree = s;
		println("New doc with " + s + " degree");
	}
	void intubate(){
		println("prepare patient");
		laryngoscopy();
	}
	void laryngoscopy(){
		println("use laryngoscopy");
	}
}

public class OverloadedConstructors {
	public static void main(String[] args){
		new Doc(3).intubate();
	}
}
